import java.util.Comparator;

public class Test {
    public static void main(String[] args) throws Exception {
        MyPriorityQueue treeHeap = new MyPriorityQueue();
        int[] array = {27,15};
        treeHeap.init(array);
        System.out.println("大根堆");
        treeHeap.createHeap();
        treeHeap.display();
        treeHeap.offer(10);
        treeHeap.offer(13);
        treeHeap.offer(9);
        treeHeap.display();
        treeHeap.poll();
        treeHeap.display();
        treeHeap.poll();
        treeHeap.display();
        treeHeap.poll();
        treeHeap.display();
        treeHeap.poll();
        treeHeap.poll();
        treeHeap.display();

    }
}
